<template>
	<view class="storeBox">
		<view class="topMenu">
			<view class="">
				<view class="check" @click="goToPage('store')">
					<view class="">纯展示页面</view>
					<view class="hr"></view>
				</view>
			</view>
		</view>
		<view class="content">
			<view class="list" v-for="(item,index) in staffList" :key="index">
				<view class="">
					<view class="">底薪: <text>{{item.wages}}</text></view>
					<view class="">手机号: <text>{{item.phone}}</text></view>
					<view class="">姓名: <text>{{item.name}}</text></view>
				</view>
				<view class="">
					<view class="">送餐地址: <text>{{item.address}}</text></view>
					<view class="">当日送餐份数: <text>{{item.achievement}}</text></view>
				</view>
				<view class="">
					<view class="">日期: <text>{{item.date}}</text></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				staffList: [{
						wages: '2000',
						phone: '13123229980',
						name: '王德发',
						address: 'L8',
						achievement: '123份',
						date: '2022年11月11日'
					},
					{
						wages: '2000',
						phone: '13123229980',
						name: '王德发',
						address: 'L8',
						achievement: '123份',
						date: '2022年11月11日'
					},
					{
						wages: '2000',
						phone: '13123229980',
						name: '王德发',
						address: 'L8',
						achievement: '123份',
						date: '2022年11月11日'
					},
					{
						wages: '2000',
						phone: '13123229980',
						name: '王德发',
						address: 'L8',
						achievement: '123份',
						date: '2022年11月11日'
					},
					{
						wages: '2000',
						phone: '13123229980',
						name: '王德发',
						address: 'L8',
						achievement: '123份',
						date: '2022年11月11日'
					},
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.storeBox {
		background-color: #F5F5F5;
		padding-bottom: 150rpx;
	}

	.topMenu {
		padding: 20rpx 0;
		background-color: #fff;
		padding: 20rpx;
		@include flex(space-between, center);

		>view:nth-child(1) {
			>view {
				margin-right: 30rpx;
				font-size: 40rpx;
				line-height: 56rpx;
				color: rgba(0, 0, 0, .35);

				>view:nth-child(2) {
					width: 40rpx;
					height: 8rpx;
					background: #F1B825;
					margin-top: 10rpx;
					display: none;
				}
			}

			>.check {
				color: #000;

				>view:nth-child(2) {
					display: block;
				}
			}
		}

		>view:nth-child(2) {
			@include flex();
			font-size: 28rpx;
			line-height: 2;

			image {
				width: 20rpx;
				height: 20rpx;
				margin-left: 10rpx;
				transform: rotate(-90deg);
			}
		}
	}


	.list {
		background-color: #fff;
		padding: 40rpx 40rpx;
		margin-top: 20rpx;

		>view {
			@include flex();
			font-size: 28rpx;
			line-height: 2;

			>view {
				margin-right: 30rpx;
				color: rgba(0, 0, 0, 0.55);

				text {
					color: #000;
					margin-left: 10rpx;
				}
			}
		}
	}
</style>
